﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace DimsMapper
{
    class DataBase
    {
        string filepath; // полный путь к dat файлу или к папке
        //string name;

        bool isDb;
        bool isEnabled;
        bool isCustom = false;

        public DataBase(string path, string gamePath)
        {
            filepath = Path.Combine(gamePath, path);
            isDb = File.Exists(filepath);
            isEnabled = true;
        }

        public DataBase(string path, string gamePath, bool custom) : this(path, gamePath)
        {
            isCustom = custom;
        }

        public string DataBasePath
        {
            get { return filepath; }
        }

        public bool IsDat
        {
            get { return isDb; }
        }

        public bool IsEnabled
        {
            set { isEnabled = value; }
            get { return isEnabled; }
        }

        public bool IsCustom
        {
            get { return isCustom; }
        }
    }
}
